<?php
/**
 * This file is part of the n98-magerun2 project.
 *
 * For the full copyright and license information, please view the MIT-LICENSE.txt
 * file that was distributed with this source code.
 */

namespace N98\Util\Unicode;

class CharsetTest extends \PHPUnit\Framework\TestCase
{
    public function testConvertInteger()
    {
        $this->assertEquals('✖', Charset::convertInteger(Charset::UNICODE_CROSS_CHAR));
        $this->assertEquals('✔', Charset::convertInteger(Charset::UNICODE_CHECKMARK_CHAR));
        $this->assertEquals(
            '✔✖',
            Charset::convertInteger(Charset::UNICODE_CHECKMARK_CHAR, Charset::UNICODE_CROSS_CHAR)
        );
        $this->assertEquals(
            '✖✔',
            Charset::convertInteger([Charset::UNICODE_CROSS_CHAR, Charset::UNICODE_CHECKMARK_CHAR])
        );
    }
}
